<template>
  <div>
    <button @click="clickhandle">click me</button>
    <div v-if="show">
      <p>text</p>
    </div>
  </div>
</template>
<script>
export default {
  methods: {
    clickhandle() {
      this.show = !this.show;
    },
  },
  data() {
    return {
      show: false,
    };
  },
};
</script>
<style></style>
